/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package caintra.Sapra.Pantalla.QuincenalMensual;

import nextapp.echo2.app.event.ActionEvent;
import nextapp.echo2.app.event.ActionListener;

/**
 *
 * @author Administrador
 */
public class PrefacturaDetailControllerQM implements ActionListener{

    public PrefacturaDetailViewQM pdv;
    public PrefacturaDetailControllerQM(PrefacturaDetailViewQM pdv) {
        this.pdv=pdv;
        this.pdv.table_detalle.addActionListener(this);
        init();
    }
    public void init(){
        try {
            pdv.key_practicante=pdv.key_practicante+" "+pdv.p_detalle.getNombre()+" "+pdv.p_detalle.getPaterno()+" "+pdv.p_detalle.getMaterno();
            pdv.nombre.setText(pdv.key_practicante);
            pdv.table_detalle.setLista_Practicante_Detalle(pdv.lista_detalle);
        } catch (Exception e) {
            e.printStackTrace();
        }
        
    }

    public void actionPerformed(ActionEvent e) {
         try {
            if(e.getActionCommand().equals("detail_table")){
                    System.out.println("jalo por aca PrefacturaController");
            }
        } catch (Exception exc) {
            exc.printStackTrace();
        }
    }
}
